"""
好物社页面
"""
from page.BASE_PAGE import BasePage
class HAOWUSHE(BasePage):
        # 点击好物社
    def dj_haowushe(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("好物社")').click()
        # 点击第一个商品
    def dj_diyigezuoping(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("日日煮自热系列-鲍鱼佛跳墙捞饭")').click()
        # 点击客服
    def dj_kefu(self):
        self.driver.tap([(40, 1540)], 500)
        # 点击取消
    def dj_quxiao(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("取消")').click()
        # 点击购物车
    def dj_gouwuche(self):
        self.driver.tap([(170, 1540)], 500)
        # 点击返回
    def fanhui(self):
        self.driver.press_keycode(4)
        # 点击分享按钮
    def dj_fenxiang(self):
        self.driver.tap([(850, 90)], 1000)
        # 点击首页
    def dj_shouye(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("首页")').click()
